#pragma once

#include <QObject>
#include "TcpService.hpp"
#include "Protocol.hpp"

class RegisterViewModel : public QObject
{
    Q_OBJECT
public:
    explicit RegisterViewModel(QObject *parent = nullptr, TcpService* tcpclient = nullptr);
public slots:
    bool registerRequest(const QString& username, const QString& userid, const QString& password, const QString& head);
    void respHandle(const ProtocolPtr &resp);
//    void respHandle();
signals:

private:
    TcpService* tcpclient;
};

